﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PerfilPermiso.aspx.cs" Inherits="YERIL_PI_INT.PaginasWebs.Modulos.Login.PerfilPermiso" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link href="../../../Content/bootstrap/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700"/>
    <link href="../../../Recursos/HojasEstilo/HELogin.css" rel="stylesheet" />
    <script type="text/javascript">
        function Alerta_Eliminar() {
            var respuesta = confirm("¿Desea eliminar <%=seleccion%>?");
            if (respuesta == true) {
                return true;
            }
            else {
                return false;
            }

        }

    </script>
</head>
<body class="cuerpo">
    <form id="form1" runat="server">
    <legend>Permisos - Puesto</legend>
        
            
         <div class="alert alert-info">
            <button type="button" class="close" data-dismiss="alert">&times;</button>
             <strong> <% if(MensajeError==null){MensajeError="No hay Errores";} %><%=MensajeError %></strong>
        </div>
        <div class="row">
         <div class="col-md-8" > 
            <div class="panel panel-default">
                <div class="panel-heading">Lista de Puestos</div>
                 <div class="panel-body">
                   <div class="control-group col-xs-9">
                        
                        
                        <div class="controls">
                            <asp:DropDownList ID="ddlPuestos" runat="server" CssClass="form-control" Width="430px" autopostback="true" OnSelectedIndexChanged="ddlPuestos_SelectedIndexChanged"></asp:DropDownList>
                           
                         </div>
                    </div>
                 </div>
                </div>
         </div> 
        </div>
       <div class="row">
        

            <div class="col-md-4" >
                
                <div class="panel panel-default">
                <div class="panel-heading">Lista de Modulos</div>
                 <div class="panel-body">
                   <div class="control-group col-xs-9">
                      
                        <div class="controls">
                            <asp:ListBox ID="lbxModulo" runat="server" CssClass="form-control" Height="130px" autopostback="true" OnSelectedIndexChanged="lbxModulo_SelectedIndexChanged"></asp:ListBox>
                         </div>
                    </div>
                 </div>
                </div>

               
            </div> 

           <div class="col-md-4" >
                
                <div class="panel panel-default">
                <div class="panel-heading">Lista de Permisos</div>
                 <div class="panel-body">
                   <div class="control-group col-xs-9">
                        <div class="btn-group">
                            <asp:ImageButton ID="btnGuardarPermisoPuesto" runat="server"   CssClass="btn btn-default"  ImageUrl="~/Recursos/Imagenes/glyphicons_446_floppy_save.png" Height="35" Width="45" OnClick="btnGuardarPermisoPuesto_Click"  />
                        </div>
                        <br /><br />
                        <div class="controls">
                            <asp:ListBox ID="lbxPermisos" runat="server" CssClass="form-control"></asp:ListBox>
                         </div>
                    
                    </div>
                 </div>
                </div>

                <br />
               
            </div> 
            
               

               
           
                
                
       </div>
    
         
        <div class="panel panel-default">
                <div class="panel-heading">Permisos de <%--<%=Puesto%>--%></div>
                 <div class="panel-body">
                   <div class="control-group col-xs-9">
                        <div class="btn-group">
                            <asp:ImageButton ID="btnEliminar" runat="server"   CssClass="btn btn-default"  ImageUrl="~/Recursos/Imagenes/glyphicons_191_circle_minus.png" Height="35" Width="45"  OnClientClick="return Alerta_Eliminar()" OnClick="btnEliminar_Click"  />
                            </div>
                        <br /><br />
                        <div class="table-responsive">
                            <asp:GridView ID="gvPuestoPermiso" runat="server" CssClass="table table-bordered table-hover" OnSelectedIndexChanged="gvPuestoPermiso_SelectedIndexChanged"   >
                            <Columns>
                            <asp:CommandField ButtonType="Image" ShowSelectButton="True" SelectImageUrl="~/Recursos/Imagenes/glyphicons_217_circle_arrow_right.png"/>
                            </Columns>
                            </asp:GridView>
                        </div>
                    
                    </div>
                 </div>
        </div>   
    
         
    
    </form>
     <script src="../Scripts/jquery-1.9.1.min.js"></script>
    <script src="../Scripts/bootstrap.min.js"></script>
</body>
</html>
